﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WaterRevenueMS.Domain.Common.Models;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;


namespace WaterRevenueMS.Domain.ViewModels.BasicSet.AccountState
{
    public class AccountStateModel : EntityCommon
    {
        public AccountStateModel()
        {
            Search = new SearchModel();
            {

            };
        }

         public int Id { get; set; }


        [Display(Name = "账户状态")]
        [Required(ErrorMessage = "账户状态不能为空")]
        [StringLength(16, MinimumLength = 2, ErrorMessage = "账户状态{2}～{1}个字符")]
         public string Zhang_HZT { get; set; }

        [Display(Name = "状态代码")]
        public string Zhang_TDM { get; set; }


        [Display(Name = "排序序号")]
        [RegularExpression(@"\d+", ErrorMessage = "必须是数字")]
        public int OrderNo { get; set; }

        public SearchModel Search { get; set; }
    }
    public class SearchModel
    {
        public SearchModel()
        {
           
        }


        [Display(Name = "账户状态")]
        public string Zhang_HZT { get; set; }


        [Display(Name = "状态代码")]
        public string Zhang_TDM { get; set; }
    }
}
